iterate over classes in module python

36

dict([(name, cls) for name, cls in mod.__dict__.items() if isinstance(cls, type)])

Comments

Submit
0 Comments